//
//  GJOilSelectedView.m
//  xmgjAppFront
//
//  Created by Zeki on 2020/7/11.
//  Copyright © 2020 guojutech. All rights reserved.
//

#import "GJOilSelectedView.h"
#import "GJOilTypeSelected.h"
@interface GJOilSelectedView ()
@property (weak, nonatomic) IBOutlet UILabel *IB_oilLabel;

@end

@implementation GJOilSelectedView



- (instancetype)initWithFrame:(CGRect)frame
{
  self = [super initWithFrame:frame];
  if (self) {
    self = [[[NSBundle mainBundle] loadNibNamed:@"GJOilSelectedView" owner:self options:nil] lastObject];
    self.backgroundColor = [UIColor whiteColor];
    self.layer.cornerRadius = 8;
    self.layer.masksToBounds = YES;
  }
  return self;
}
- (IBAction)IB_buttonClickAction:(UIButton *)sender {
  [GJOilTypeSelected showWithSelectedData:self.dataArray Block:self.itemClickBlcok];
}

- (void)setOilType:(NSString *)oilType{
  _oilType = oilType;
  self.IB_oilLabel.text = oilType;
}
- (void)setSelectedModel:(GJOilClassificationModel *)selectedModel{
  _selectedModel = selectedModel;
  self.IB_oilLabel.text = selectedModel.businessNo;
}
@end
